class LYWorksCommentModel {
  LYWorksCommentModel(
      {this.userId,
      this.nickname,
      this.avatar,
      this.content,
      this.type,
      this.isUpvote});

  LYWorksCommentModel.fromJson(dynamic json) {
    userId = json['userId'];
    nickname = json['nickname'];
    avatar = json['avatar'];
    content = json['content'];
    type = json['type'];
    isUpvote = json['isUpvote'];
    seconds = json['seconds'];
  }
  String? userId;
  String? nickname;
  String? avatar;
  String? content;
  num? type;
  bool? isUpvote;
  int? seconds;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['userId'] = userId;
    map['nickname'] = nickname;
    map['avatar'] = avatar;
    map['content'] = content;
    map['type'] = type;
    map['isUpvote'] = isUpvote;
    map['seconds'] = seconds;

    return map;
  }
}
